package Acme.Serve;

import java.util.Enumeration;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;

public class ServeConfig implements ServletConfig {

	private ServletContext context;

	public ServeConfig(ServletContext context) {
		this.context = context;
	}

	// / Returns the context for the servlet.
	public ServletContext getServletContext() {
		return context;
	}

	// / Gets an initialization parameter of the servlet.
	// @param name the parameter name
	public String getInitParameter(String name) {
		throw new UnsupportedOperationException(
				"This server doesn't support servlet init params.");
	}

	// / Gets the names of the initialization parameters of the servlet.
	// @param name the parameter name
	public Enumeration<String> getInitParameterNames() {
		throw new UnsupportedOperationException(
				"This server doesn't support servlet init params.");
	}

	public String getServletName() {
		// TODO Auto-generated method stub
		return null;
	}

}